package top.somliy.platform.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.socket.TextMessage;
import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import top.somliy.websocket.handler.AbstractConnectMqWebSocketHandler;

/**
 * 类名： @ClassName MqWebSocketHandler websocket消息处理类
 * 创建人：@author zhao dong
 * 类描述：@Description: websocket消息处理类
 * 创建时间: 2023/11/20 16:54
 */
@Slf4j
@Component
@EnableWebSocket
public class MqWebSocketHandler extends AbstractConnectMqWebSocketHandler {
    @Override
    public void handleMessage(WebSocketSession session, TextMessage message) {
        log.info("[websocket]MqWebSocketHandler文本消息：{}", message.toString());
    }
}
